<template>
  <div class="login">
    <div class="loginin">
      <div class="head">shoppingApp</div>
      <p>一个帐号玩转所有会员服务</p>
      <van-form @submit="onSubmit">
        <van-field
          v-model="username"
          name="用户名"
          label="用户名"
          placeholder="邮箱/手机号"
          :rules="[{ required: true, message: '请填写用户名' }]"
        />
        <van-field
          v-model="password"
          type="password"
          name="密码"
          label="密码"
          placeholder="密码"
          :rules="[{ required: true, message: '请填写密码' }]"
        />
        <van-field
          v-model="repassword"
          type="password"
          name="密码"
          label="确认密码"
          placeholder="确认密码"
          :rules="[{ required: true, message: '请确认密码' }]"
        />
        <div style="margin-top: 16px;">
          <van-button
            round block type="info"
            native-type="submit"
            style='border-radius: 5px;font-size:18px;'
          >注册</van-button>
        </div>
      </van-form>
      <p style="font-size:16px;"><a href="">短信验证码注册</a></p>
      <p style="font-size:14px;margin-top:220px;">从这里出发，开启生态世界 </p>
      <div class="p1"><hr/>其他方式登录<hr/></div>
      <div class="icon">
        <i class="iconfont">&#xe69a;</i>
        <i class="iconfont">&#xe69a;</i>
        <i class="iconfont">&#xe69a;</i>
      </div>
      <p>语言：简体中文 国家/地区：中国</p>
      <p>客服电话：1 010 9000</p>
    </div>
  </div>
</template>

<script>
export default {
  name: 'register',
  data () {
    return {
      username: '',
      password: '',
      repassword: ''
    }
  },
  methods: {
    onSubmit () {
      this.$router.push('/login')
    }
  }
}
</script>

<style lang="scss" scoped>
.iconfont{
  font-family:"iconfont" !important;
  font-size:16px;font-style:normal;
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke-width: 0.2px;
  -moz-osx-font-smoothing: grayscale;}
.login{
  height: 100%;
  background: #fff;
}
.loginin{
  margin: 0 auto;
  width: 90%;
  .head{
    font-weight: 900;
    text-align: center;
    color: #1989fa;
    font-size: 36px;
    margin: 0 auto;
    display: block;
    width: 240px;
    height: 70px;
    padding-top: 40px;
  }
  p{
    display: block;
    width: 100%;
    text-align: center;
    font-size: 12px;
    margin: 20px auto;
    color: #999;
    a{
      color: #0f93de;
      margin: 0 60px;
    }
  }
  .icon{
    display: flex;
    justify-content: space-between;
    padding: 0 20px ;
    i{
      display: block;
      font-size: 40px;
      color: #1989fa;
    }
  }
  .p1{
    margin: 20px 0;
    font-size: 12px;
    color: #999;
    hr{
      width: 200px;
      height: 0;
      border: 1px solid #ccc;
    }
    display: flex;
    justify-content: space-between;
  }
}
.van-cell{
  border-bottom: 1px solid #d3d3d3;
  color: #d3d3d3;
}
</style>
